
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '加盟商管理',
    enableValidate: true
})

@Injectable()
export class BasicFormViewmodelForm extends Form {
    @NgFormControl({
        id: 'merchantName_f9424680_nokj',
        name: "{{merchantName_f9424680_nokj}}",
        binding: 'merchantName',
        updateOn: 'blur',
        defaultI18nValue: '商户名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantName: FormControl;

    @NgFormControl({
        id: 'merchantCode_ca36f6ee_dkhi',
        name: "{{merchantCode_ca36f6ee_dkhi}}",
        binding: 'merchantCode',
        updateOn: 'blur',
        defaultI18nValue: '商户编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantCode: FormControl;

    @NgFormControl({
        id: 'companyType_1ca99698_nrga',
        name: "{{companyType_1ca99698_nrga}}",
        binding: 'companyType',
        updateOn: 'blur',
        defaultI18nValue: '企业类型',
    })
    companyType: FormControl;

    @NgFormControl({
        id: 'merchantType_67e1c4c9_el63',
        name: "{{merchantType_67e1c4c9_el63}}",
        binding: 'merchantType',
        updateOn: 'blur',
        defaultI18nValue: '商户类型',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantType: FormControl;

    @NgFormControl({
        id: 'email_9154a5d8_podf',
        name: "{{email_9154a5d8_podf}}",
        binding: 'email',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    email: FormControl;

    @NgFormControl({
        id: 'telephone_1857b7a2_cxxx',
        name: "{{telephone_1857b7a2_cxxx}}",
        binding: 'telephone',
        updateOn: 'blur',
        defaultI18nValue: '联系电话',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    telephone: FormControl;

    @NgFormControl({
        id: 'adminstrator_4dfdc26a_sihk',
        name: "{{adminstrator_4dfdc26a_sihk}}",
        binding: 'adminstrator',
        updateOn: 'blur',
        defaultI18nValue: '管理员',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    adminstrator: FormControl;

    @NgFormControl({
        id: 'realName_6945f62f_6srm',
        name: "{{realName_6945f62f_6srm}}",
        binding: 'realName',
        updateOn: 'blur',
        defaultI18nValue: '真实姓名',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    realName: FormControl;

    @NgFormControl({
        id: 'fullName_ff932883_u7tf',
        name: "{{fullName_ff932883_u7tf}}",
        binding: 'fullName',
        updateOn: 'blur',
        defaultI18nValue: '企业全称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fullName: FormControl;

    @NgFormControl({
        id: 'businessLicense_89489ca9_tpvl',
        name: "{{businessLicense_89489ca9_tpvl}}",
        binding: 'businessLicense',
        updateOn: 'blur',
        defaultI18nValue: '营业执照编码',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    businessLicense: FormControl;

    @NgFormControl({
        id: 'address_b1a90b43_d5za',
        name: "{{address_b1a90b43_d5za}}",
        binding: 'address',
        updateOn: 'blur',
        defaultI18nValue: '商户地址',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    address: FormControl;

}